POV-Ray : Newsgroups : povray.general : texture dependent on surface normal angle? : texture dependent on surface normal angle? Server Time
2 Aug 2024 12:19:57 EDT (-0400)
  texture dependent on surface normal angle?  
From: Rafal 'Raf256' Maj
Date: 27 Oct 2004 23:28:33
Message: <Xns9590382047634raf256com@203.29.75.35>
Is there a way to blend textures, as in texture_map, but using angle of 
normal as a pattern? 

So that "walls" - surfaces like :

 |
 | plane { x,0 }  or plane { z,0 }
 |
 |

will have texture A, and flat surfaces like 

-----  plane { y,0 }

would have texture B, and

plane { y,0 rotate x*45 /* or z*45 */ }  will be 50% A and 50% B


I want to use it for rusty ship - so that deck floor would have quite 
normal surface, and all walls will have "water steams" / rust (like this 
marks under windows, etc)

-- 
http://www.raf256.com/3d/
Rafal Maj 'Raf256', home page - http://www.raf256.com/me/
Computer Graphics


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.